extract-strings: support GMenu GtkBuilder markup
authorRyan Lortie <desrt@desrt.ca>
Wed, 15 Jan 2014 06:35:43 +0000 (01:35 -0500)
committerRyan Lortie <desrt@desrt.ca>
Sat, 18 Jan 2014 03:44:23 +0000 (22:44 -0500)
commit3f1a413d0c673e4bbe9a1785b0cd3a0cbb015ad3
tree6f08d99f1263c7ed3231fb7bf8025c93d7739201
parent6da7b11ff60726d410e40d744dcaa174fa2a47f1
extract-strings: support GMenu GtkBuilder markup

Add support for extracting strings from GMenu markup in GtkBuilder
files.

This means that we have to support translatable <attribute/> tags.

Unfortunately, <attribute> is also used by GtkTreeViewColumn and
GtkLabel for other purposes, and those other purposes use a value=''
(XML) attribute, so we must accept (and ignore) that in order not to
have errors.  Nothing will happen in those cases because they do not
also specify translatable='yes', so we ignore them.

https://bugzilla.gnome.org/show_bug.cgi?id=720552
gtk/extract-strings.c